package com.ruoyi.hotel.service;





import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.hotel.domain.HomeStay;
import com.ruoyi.hotel.domain.Room;
import com.ruoyi.hotel.domain.from.RoomFrom;
import com.ruoyi.hotel.domain.query.RoomQuery;
import com.ruoyi.hotel.domain.vo.RoomVo;

import java.util.List;

public interface RoomService {

    /***
     *
     * 保存
     *
     * @return
     * @param roomFrom
     */
    Boolean save(RoomFrom roomFrom);

    /***
     * 修改
     *
     * @return
     */
    Boolean update(RoomFrom homeStayFrom);

    /***
     * 删除
     *
     * @return
     */
    Boolean deleteById(Long id);

    /***
     * 删除
     *
     * @return
     */
    Boolean deleteByIds(List<Long> ids);

    /**
     * 查询列表
     *
     * @param query
     * @return
     */
    List<RoomVo> selectList(Room query);

    /***
     * 分页查询
     *
     * @param query
     * @return
     */
    IPage selectPage(RoomQuery query);

    /***
     * id查询
     *
     * @param id
     * @return
     */
    RoomVo selectById(Long id);

}
